(0) Obligation:

Clauses:

in_order(void, L) :- ','(!, eq(L, [])).
in_order(T, Xs) :- ','(value(T, X), ','(app(Ls, .(X, Rs), Xs), ','(left(T, L), ','(in_order(L, Ls), ','(right(T, R), in_order(R, Rs)))))).
app([], X, X).
app(.(X, Xs), Ys, .(X, Zs)) :- app(Xs, Ys, Zs).
left(void, void).
left(node(L, X1, X2), L).
right(void, void).
right(node(X3, X4, R), R).
value(void, X5).
value(node(X6, X, X7), X).
eq(X, X).

Query: in_order(a,g)

(1) PrologToDTProblemTransformerProof (SOUND transformation)

Built DT problem from termination graph DT10.

(2) Obligation:

Triples:

appA(.(X1, X2), X3, X4, .(X1, X5)) :- appA(X2, X3, X4, X5).
appC(.(X1, X2), X3, X4, .(X1, X5)) :- appC(X2, X3, X4, X5).
in_orderD(void, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) :- appA(X10, X11, X12, X9).
in_orderD(void, X1) :- ','(appcE(X2, X3, X4, X1), in_orderB(X2)).
in_orderD(void, X1) :- ','(appcE(X2, X3, X4, X1), ','(in_ordercB(X2), in_orderB(X4))).
in_orderD(node(X1, X2, X3), .(X4, .(X5, .(X6, .(X7, .(X8, .(X9, .(X10, .(X11, X12))))))))) :- appC(X13, X2, X14, X12).
in_orderD(node(X1, X2, X3), X4) :- ','(appcF(X5, X2, X6, X4), in_orderD(X1, X5)).
in_orderD(node(X1, X2, X3), X4) :- ','(appcF(X5, X2, X6, X4), ','(in_ordercD(X1, X5), in_orderD(X3, X6))).

Clauses:

appcA([], X1, X2, .(X1, X2)).
appcA(.(X1, X2), X3, X4, .(X1, X5)) :- appcA(X2, X3, X4, X5).
in_ordercB([]).
appcC([], X1, X2, .(X1, X2)).
appcC(.(X1, X2), X3, X4, .(X1, X5)) :- appcC(X2, X3, X4, X5).
in_ordercD(void, []).
in_ordercD(void, X1) :- ','(appcE(X2, X3, X4, X1), ','(in_ordercB(X2), in_ordercB(X4))).
in_ordercD(node(X1, X2, X3), X4) :- ','(appcF(X5, X2, X6, X4), ','(in_ordercD(X1, X5), in_ordercD(X3, X6))).
appcE([], X1, X2, .(X1, X2)).
appcE(.(X1, []), X2, X3, .(X1, .(X2, X3))).
appcE(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4)))).
appcE(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5))))).
appcE(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6)))))).
appcE(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))).
appcE(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))).
appcE(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))).
appcE(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) :- appcA(X9, X10, X11, X12).
appcF([], X1, X2, .(X1, X2)).
appcF(.(X1, []), X2, X3, .(X1, .(X2, X3))).
appcF(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4)))).
appcF(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5))))).
appcF(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6)))))).
appcF(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))).
appcF(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))).
appcF(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))).
appcF(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) :- appcC(X9, X10, X11, X12).

Afs:

in_orderD(x1, x2)  =  in_orderD(x2)

(3) UndefinedPredicateInTriplesTransformerProof (SOUND transformation)

Deleted triples and predicates having undefined goals [DT09].

(4) Obligation:

Triples:

appA(.(X1, X2), X3, X4, .(X1, X5)) :- appA(X2, X3, X4, X5).
appC(.(X1, X2), X3, X4, .(X1, X5)) :- appC(X2, X3, X4, X5).
in_orderD(void, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) :- appA(X10, X11, X12, X9).
in_orderD(node(X1, X2, X3), .(X4, .(X5, .(X6, .(X7, .(X8, .(X9, .(X10, .(X11, X12))))))))) :- appC(X13, X2, X14, X12).
in_orderD(node(X1, X2, X3), X4) :- ','(appcF(X5, X2, X6, X4), in_orderD(X1, X5)).
in_orderD(node(X1, X2, X3), X4) :- ','(appcF(X5, X2, X6, X4), ','(in_ordercD(X1, X5), in_orderD(X3, X6))).

Clauses:

appcA([], X1, X2, .(X1, X2)).
appcA(.(X1, X2), X3, X4, .(X1, X5)) :- appcA(X2, X3, X4, X5).
in_ordercB([]).
appcC([], X1, X2, .(X1, X2)).
appcC(.(X1, X2), X3, X4, .(X1, X5)) :- appcC(X2, X3, X4, X5).
in_ordercD(void, []).
in_ordercD(void, X1) :- ','(appcE(X2, X3, X4, X1), ','(in_ordercB(X2), in_ordercB(X4))).
in_ordercD(node(X1, X2, X3), X4) :- ','(appcF(X5, X2, X6, X4), ','(in_ordercD(X1, X5), in_ordercD(X3, X6))).
appcE([], X1, X2, .(X1, X2)).
appcE(.(X1, []), X2, X3, .(X1, .(X2, X3))).
appcE(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4)))).
appcE(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5))))).
appcE(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6)))))).
appcE(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))).
appcE(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))).
appcE(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))).
appcE(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) :- appcA(X9, X10, X11, X12).
appcF([], X1, X2, .(X1, X2)).
appcF(.(X1, []), X2, X3, .(X1, .(X2, X3))).
appcF(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4)))).
appcF(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5))))).
appcF(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6)))))).
appcF(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))).
appcF(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))).
appcF(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))).
appcF(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) :- appcC(X9, X10, X11, X12).

Afs:

in_orderD(x1, x2)  =  in_orderD(x2)

(5) TriplesToPiDPProof (SOUND transformation)

We use the technique of [DT09]. With regard to the inferred argument filtering the predicates were used in the following modes:
in_orderD_in: (f,b)
appA_in: (f,f,f,b)
appC_in: (f,f,f,b)
appcF_in: (f,f,f,b)
appcC_in: (f,f,f,b)
in_ordercD_in: (f,b)
appcE_in: (f,f,f,b)
appcA_in: (f,f,f,b)
Transforming TRIPLES into the following Term Rewriting System:
Pi DP problem:
The TRS P consists of the following rules:

IN_ORDERD_IN_AG(void, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → U3_AG(X1, X2, X3, X4, X5, X6, X7, X8, X9, appA_in_aaag(X10, X11, X12, X9))
IN_ORDERD_IN_AG(void, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → APPA_IN_AAAG(X10, X11, X12, X9)
APPA_IN_AAAG(.(X1, X2), X3, X4, .(X1, X5)) → U1_AAAG(X1, X2, X3, X4, X5, appA_in_aaag(X2, X3, X4, X5))
APPA_IN_AAAG(.(X1, X2), X3, X4, .(X1, X5)) → APPA_IN_AAAG(X2, X3, X4, X5)
IN_ORDERD_IN_AG(node(X1, X2, X3), .(X4, .(X5, .(X6, .(X7, .(X8, .(X9, .(X10, .(X11, X12))))))))) → U4_AG(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appC_in_aaag(X13, X2, X14, X12))
IN_ORDERD_IN_AG(node(X1, X2, X3), .(X4, .(X5, .(X6, .(X7, .(X8, .(X9, .(X10, .(X11, X12))))))))) → APPC_IN_AAAG(X13, X2, X14, X12)
APPC_IN_AAAG(.(X1, X2), X3, X4, .(X1, X5)) → U2_AAAG(X1, X2, X3, X4, X5, appC_in_aaag(X2, X3, X4, X5))
APPC_IN_AAAG(.(X1, X2), X3, X4, .(X1, X5)) → APPC_IN_AAAG(X2, X3, X4, X5)
IN_ORDERD_IN_AG(node(X1, X2, X3), X4) → U5_AG(X1, X2, X3, X4, appcF_in_aaag(X5, X2, X6, X4))
U5_AG(X1, X2, X3, X4, appcF_out_aaag(X5, X2, X6, X4)) → U6_AG(X1, X2, X3, X4, in_orderD_in_ag(X1, X5))
U5_AG(X1, X2, X3, X4, appcF_out_aaag(X5, X2, X6, X4)) → IN_ORDERD_IN_AG(X1, X5)
U5_AG(X1, X2, X3, X4, appcF_out_aaag(X5, X2, X6, X4)) → U7_AG(X1, X2, X3, X4, X6, in_ordercD_in_ag(X1, X5))
U7_AG(X1, X2, X3, X4, X6, in_ordercD_out_ag(X1, X5)) → U8_AG(X1, X2, X3, X4, in_orderD_in_ag(X3, X6))
U7_AG(X1, X2, X3, X4, X6, in_ordercD_out_ag(X1, X5)) → IN_ORDERD_IN_AG(X3, X6)

The TRS R consists of the following rules:

appcF_in_aaag([], X1, X2, .(X1, X2)) → appcF_out_aaag([], X1, X2, .(X1, X2))
appcF_in_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3))) → appcF_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcF_in_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4)))) → appcF_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcF_in_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5))))) → appcF_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appcC_in_aaag(X9, X10, X11, X12))
appcC_in_aaag([], X1, X2, .(X1, X2)) → appcC_out_aaag([], X1, X2, .(X1, X2))
appcC_in_aaag(.(X1, X2), X3, X4, .(X1, X5)) → U11_aaag(X1, X2, X3, X4, X5, appcC_in_aaag(X2, X3, X4, X5))
U11_aaag(X1, X2, X3, X4, X5, appcC_out_aaag(X2, X3, X4, X5)) → appcC_out_aaag(.(X1, X2), X3, X4, .(X1, X5))
U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appcC_out_aaag(X9, X10, X11, X12)) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
in_ordercD_in_ag(void, []) → in_ordercD_out_ag(void, [])
in_ordercD_in_ag(void, X1) → U12_ag(X1, appcE_in_aaag(X2, X3, X4, X1))
appcE_in_aaag([], X1, X2, .(X1, X2)) → appcE_out_aaag([], X1, X2, .(X1, X2))
appcE_in_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3))) → appcE_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcE_in_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4)))) → appcE_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcE_in_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5))))) → appcE_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U18_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appcA_in_aaag(X9, X10, X11, X12))
appcA_in_aaag([], X1, X2, .(X1, X2)) → appcA_out_aaag([], X1, X2, .(X1, X2))
appcA_in_aaag(.(X1, X2), X3, X4, .(X1, X5)) → U10_aaag(X1, X2, X3, X4, X5, appcA_in_aaag(X2, X3, X4, X5))
U10_aaag(X1, X2, X3, X4, X5, appcA_out_aaag(X2, X3, X4, X5)) → appcA_out_aaag(.(X1, X2), X3, X4, .(X1, X5))
U18_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appcA_out_aaag(X9, X10, X11, X12)) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
U12_ag(X1, appcE_out_aaag(X2, X3, X4, X1)) → U13_ag(X1, X2, X3, X4, in_ordercB_in_g(X2))
in_ordercB_in_g([]) → in_ordercB_out_g([])
U13_ag(X1, X2, X3, X4, in_ordercB_out_g(X2)) → U14_ag(X1, in_ordercB_in_g(X4))
U14_ag(X1, in_ordercB_out_g(X4)) → in_ordercD_out_ag(void, X1)
in_ordercD_in_ag(node(X1, X2, X3), X4) → U15_ag(X1, X2, X3, X4, appcF_in_aaag(X5, X2, X6, X4))
U15_ag(X1, X2, X3, X4, appcF_out_aaag(X5, X2, X6, X4)) → U16_ag(X1, X2, X3, X4, X5, X6, in_ordercD_in_ag(X1, X5))
U16_ag(X1, X2, X3, X4, X5, X6, in_ordercD_out_ag(X1, X5)) → U17_ag(X1, X2, X3, X4, in_ordercD_in_ag(X3, X6))
U17_ag(X1, X2, X3, X4, in_ordercD_out_ag(X3, X6)) → in_ordercD_out_ag(node(X1, X2, X3), X4)

The argument filtering Pi contains the following mapping:
in_orderD_in_ag(x1, x2)  =  in_orderD_in_ag(x2)
.(x1, x2)  =  .(x1, x2)
appA_in_aaag(x1, x2, x3, x4)  =  appA_in_aaag(x4)
appC_in_aaag(x1, x2, x3, x4)  =  appC_in_aaag(x4)
appcF_in_aaag(x1, x2, x3, x4)  =  appcF_in_aaag(x4)
appcF_out_aaag(x1, x2, x3, x4)  =  appcF_out_aaag(x1, x2, x3, x4)
U19_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U19_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x12, x13)
appcC_in_aaag(x1, x2, x3, x4)  =  appcC_in_aaag(x4)
appcC_out_aaag(x1, x2, x3, x4)  =  appcC_out_aaag(x1, x2, x3, x4)
U11_aaag(x1, x2, x3, x4, x5, x6)  =  U11_aaag(x1, x5, x6)
in_ordercD_in_ag(x1, x2)  =  in_ordercD_in_ag(x2)
[]  =  []
in_ordercD_out_ag(x1, x2)  =  in_ordercD_out_ag(x1, x2)
U12_ag(x1, x2)  =  U12_ag(x1, x2)
appcE_in_aaag(x1, x2, x3, x4)  =  appcE_in_aaag(x4)
appcE_out_aaag(x1, x2, x3, x4)  =  appcE_out_aaag(x1, x2, x3, x4)
U18_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U18_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x12, x13)
appcA_in_aaag(x1, x2, x3, x4)  =  appcA_in_aaag(x4)
appcA_out_aaag(x1, x2, x3, x4)  =  appcA_out_aaag(x1, x2, x3, x4)
U10_aaag(x1, x2, x3, x4, x5, x6)  =  U10_aaag(x1, x5, x6)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x1, x4, x5)
in_ordercB_in_g(x1)  =  in_ordercB_in_g(x1)
in_ordercB_out_g(x1)  =  in_ordercB_out_g(x1)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x4, x5)
U16_ag(x1, x2, x3, x4, x5, x6, x7)  =  U16_ag(x2, x4, x6, x7)
U17_ag(x1, x2, x3, x4, x5)  =  U17_ag(x1, x2, x4, x5)
void  =  void
node(x1, x2, x3)  =  node(x1, x2, x3)
IN_ORDERD_IN_AG(x1, x2)  =  IN_ORDERD_IN_AG(x2)
U3_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U3_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)
APPA_IN_AAAG(x1, x2, x3, x4)  =  APPA_IN_AAAG(x4)
U1_AAAG(x1, x2, x3, x4, x5, x6)  =  U1_AAAG(x1, x5, x6)
U4_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U4_AG(x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)
APPC_IN_AAAG(x1, x2, x3, x4)  =  APPC_IN_AAAG(x4)
U2_AAAG(x1, x2, x3, x4, x5, x6)  =  U2_AAAG(x1, x5, x6)
U5_AG(x1, x2, x3, x4, x5)  =  U5_AG(x4, x5)
U6_AG(x1, x2, x3, x4, x5)  =  U6_AG(x4, x5)
U7_AG(x1, x2, x3, x4, x5, x6)  =  U7_AG(x4, x5, x6)
U8_AG(x1, x2, x3, x4, x5)  =  U8_AG(x4, x5)

We have to consider all (P,R,Pi)-chains

Infinitary Constructor Rewriting Termination of PiDP implies Termination of TRIPLES

(6) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

IN_ORDERD_IN_AG(void, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → U3_AG(X1, X2, X3, X4, X5, X6, X7, X8, X9, appA_in_aaag(X10, X11, X12, X9))
IN_ORDERD_IN_AG(void, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → APPA_IN_AAAG(X10, X11, X12, X9)
APPA_IN_AAAG(.(X1, X2), X3, X4, .(X1, X5)) → U1_AAAG(X1, X2, X3, X4, X5, appA_in_aaag(X2, X3, X4, X5))
APPA_IN_AAAG(.(X1, X2), X3, X4, .(X1, X5)) → APPA_IN_AAAG(X2, X3, X4, X5)
IN_ORDERD_IN_AG(node(X1, X2, X3), .(X4, .(X5, .(X6, .(X7, .(X8, .(X9, .(X10, .(X11, X12))))))))) → U4_AG(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appC_in_aaag(X13, X2, X14, X12))
IN_ORDERD_IN_AG(node(X1, X2, X3), .(X4, .(X5, .(X6, .(X7, .(X8, .(X9, .(X10, .(X11, X12))))))))) → APPC_IN_AAAG(X13, X2, X14, X12)
APPC_IN_AAAG(.(X1, X2), X3, X4, .(X1, X5)) → U2_AAAG(X1, X2, X3, X4, X5, appC_in_aaag(X2, X3, X4, X5))
APPC_IN_AAAG(.(X1, X2), X3, X4, .(X1, X5)) → APPC_IN_AAAG(X2, X3, X4, X5)
IN_ORDERD_IN_AG(node(X1, X2, X3), X4) → U5_AG(X1, X2, X3, X4, appcF_in_aaag(X5, X2, X6, X4))
U5_AG(X1, X2, X3, X4, appcF_out_aaag(X5, X2, X6, X4)) → U6_AG(X1, X2, X3, X4, in_orderD_in_ag(X1, X5))
U5_AG(X1, X2, X3, X4, appcF_out_aaag(X5, X2, X6, X4)) → IN_ORDERD_IN_AG(X1, X5)
U5_AG(X1, X2, X3, X4, appcF_out_aaag(X5, X2, X6, X4)) → U7_AG(X1, X2, X3, X4, X6, in_ordercD_in_ag(X1, X5))
U7_AG(X1, X2, X3, X4, X6, in_ordercD_out_ag(X1, X5)) → U8_AG(X1, X2, X3, X4, in_orderD_in_ag(X3, X6))
U7_AG(X1, X2, X3, X4, X6, in_ordercD_out_ag(X1, X5)) → IN_ORDERD_IN_AG(X3, X6)

The TRS R consists of the following rules:

appcF_in_aaag([], X1, X2, .(X1, X2)) → appcF_out_aaag([], X1, X2, .(X1, X2))
appcF_in_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3))) → appcF_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcF_in_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4)))) → appcF_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcF_in_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5))))) → appcF_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appcC_in_aaag(X9, X10, X11, X12))
appcC_in_aaag([], X1, X2, .(X1, X2)) → appcC_out_aaag([], X1, X2, .(X1, X2))
appcC_in_aaag(.(X1, X2), X3, X4, .(X1, X5)) → U11_aaag(X1, X2, X3, X4, X5, appcC_in_aaag(X2, X3, X4, X5))
U11_aaag(X1, X2, X3, X4, X5, appcC_out_aaag(X2, X3, X4, X5)) → appcC_out_aaag(.(X1, X2), X3, X4, .(X1, X5))
U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appcC_out_aaag(X9, X10, X11, X12)) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
in_ordercD_in_ag(void, []) → in_ordercD_out_ag(void, [])
in_ordercD_in_ag(void, X1) → U12_ag(X1, appcE_in_aaag(X2, X3, X4, X1))
appcE_in_aaag([], X1, X2, .(X1, X2)) → appcE_out_aaag([], X1, X2, .(X1, X2))
appcE_in_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3))) → appcE_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcE_in_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4)))) → appcE_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcE_in_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5))))) → appcE_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U18_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appcA_in_aaag(X9, X10, X11, X12))
appcA_in_aaag([], X1, X2, .(X1, X2)) → appcA_out_aaag([], X1, X2, .(X1, X2))
appcA_in_aaag(.(X1, X2), X3, X4, .(X1, X5)) → U10_aaag(X1, X2, X3, X4, X5, appcA_in_aaag(X2, X3, X4, X5))
U10_aaag(X1, X2, X3, X4, X5, appcA_out_aaag(X2, X3, X4, X5)) → appcA_out_aaag(.(X1, X2), X3, X4, .(X1, X5))
U18_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appcA_out_aaag(X9, X10, X11, X12)) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
U12_ag(X1, appcE_out_aaag(X2, X3, X4, X1)) → U13_ag(X1, X2, X3, X4, in_ordercB_in_g(X2))
in_ordercB_in_g([]) → in_ordercB_out_g([])
U13_ag(X1, X2, X3, X4, in_ordercB_out_g(X2)) → U14_ag(X1, in_ordercB_in_g(X4))
U14_ag(X1, in_ordercB_out_g(X4)) → in_ordercD_out_ag(void, X1)
in_ordercD_in_ag(node(X1, X2, X3), X4) → U15_ag(X1, X2, X3, X4, appcF_in_aaag(X5, X2, X6, X4))
U15_ag(X1, X2, X3, X4, appcF_out_aaag(X5, X2, X6, X4)) → U16_ag(X1, X2, X3, X4, X5, X6, in_ordercD_in_ag(X1, X5))
U16_ag(X1, X2, X3, X4, X5, X6, in_ordercD_out_ag(X1, X5)) → U17_ag(X1, X2, X3, X4, in_ordercD_in_ag(X3, X6))
U17_ag(X1, X2, X3, X4, in_ordercD_out_ag(X3, X6)) → in_ordercD_out_ag(node(X1, X2, X3), X4)

The argument filtering Pi contains the following mapping:
in_orderD_in_ag(x1, x2)  =  in_orderD_in_ag(x2)
.(x1, x2)  =  .(x1, x2)
appA_in_aaag(x1, x2, x3, x4)  =  appA_in_aaag(x4)
appC_in_aaag(x1, x2, x3, x4)  =  appC_in_aaag(x4)
appcF_in_aaag(x1, x2, x3, x4)  =  appcF_in_aaag(x4)
appcF_out_aaag(x1, x2, x3, x4)  =  appcF_out_aaag(x1, x2, x3, x4)
U19_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U19_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x12, x13)
appcC_in_aaag(x1, x2, x3, x4)  =  appcC_in_aaag(x4)
appcC_out_aaag(x1, x2, x3, x4)  =  appcC_out_aaag(x1, x2, x3, x4)
U11_aaag(x1, x2, x3, x4, x5, x6)  =  U11_aaag(x1, x5, x6)
in_ordercD_in_ag(x1, x2)  =  in_ordercD_in_ag(x2)
[]  =  []
in_ordercD_out_ag(x1, x2)  =  in_ordercD_out_ag(x1, x2)
U12_ag(x1, x2)  =  U12_ag(x1, x2)
appcE_in_aaag(x1, x2, x3, x4)  =  appcE_in_aaag(x4)
appcE_out_aaag(x1, x2, x3, x4)  =  appcE_out_aaag(x1, x2, x3, x4)
U18_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U18_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x12, x13)
appcA_in_aaag(x1, x2, x3, x4)  =  appcA_in_aaag(x4)
appcA_out_aaag(x1, x2, x3, x4)  =  appcA_out_aaag(x1, x2, x3, x4)
U10_aaag(x1, x2, x3, x4, x5, x6)  =  U10_aaag(x1, x5, x6)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x1, x4, x5)
in_ordercB_in_g(x1)  =  in_ordercB_in_g(x1)
in_ordercB_out_g(x1)  =  in_ordercB_out_g(x1)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x4, x5)
U16_ag(x1, x2, x3, x4, x5, x6, x7)  =  U16_ag(x2, x4, x6, x7)
U17_ag(x1, x2, x3, x4, x5)  =  U17_ag(x1, x2, x4, x5)
void  =  void
node(x1, x2, x3)  =  node(x1, x2, x3)
IN_ORDERD_IN_AG(x1, x2)  =  IN_ORDERD_IN_AG(x2)
U3_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U3_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)
APPA_IN_AAAG(x1, x2, x3, x4)  =  APPA_IN_AAAG(x4)
U1_AAAG(x1, x2, x3, x4, x5, x6)  =  U1_AAAG(x1, x5, x6)
U4_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U4_AG(x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)
APPC_IN_AAAG(x1, x2, x3, x4)  =  APPC_IN_AAAG(x4)
U2_AAAG(x1, x2, x3, x4, x5, x6)  =  U2_AAAG(x1, x5, x6)
U5_AG(x1, x2, x3, x4, x5)  =  U5_AG(x4, x5)
U6_AG(x1, x2, x3, x4, x5)  =  U6_AG(x4, x5)
U7_AG(x1, x2, x3, x4, x5, x6)  =  U7_AG(x4, x5, x6)
U8_AG(x1, x2, x3, x4, x5)  =  U8_AG(x4, x5)

We have to consider all (P,R,Pi)-chains

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 3 SCCs with 8 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APPC_IN_AAAG(.(X1, X2), X3, X4, .(X1, X5)) → APPC_IN_AAAG(X2, X3, X4, X5)

The TRS R consists of the following rules:

appcF_in_aaag([], X1, X2, .(X1, X2)) → appcF_out_aaag([], X1, X2, .(X1, X2))
appcF_in_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3))) → appcF_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcF_in_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4)))) → appcF_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcF_in_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5))))) → appcF_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appcC_in_aaag(X9, X10, X11, X12))
appcC_in_aaag([], X1, X2, .(X1, X2)) → appcC_out_aaag([], X1, X2, .(X1, X2))
appcC_in_aaag(.(X1, X2), X3, X4, .(X1, X5)) → U11_aaag(X1, X2, X3, X4, X5, appcC_in_aaag(X2, X3, X4, X5))
U11_aaag(X1, X2, X3, X4, X5, appcC_out_aaag(X2, X3, X4, X5)) → appcC_out_aaag(.(X1, X2), X3, X4, .(X1, X5))
U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appcC_out_aaag(X9, X10, X11, X12)) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
in_ordercD_in_ag(void, []) → in_ordercD_out_ag(void, [])
in_ordercD_in_ag(void, X1) → U12_ag(X1, appcE_in_aaag(X2, X3, X4, X1))
appcE_in_aaag([], X1, X2, .(X1, X2)) → appcE_out_aaag([], X1, X2, .(X1, X2))
appcE_in_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3))) → appcE_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcE_in_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4)))) → appcE_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcE_in_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5))))) → appcE_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U18_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appcA_in_aaag(X9, X10, X11, X12))
appcA_in_aaag([], X1, X2, .(X1, X2)) → appcA_out_aaag([], X1, X2, .(X1, X2))
appcA_in_aaag(.(X1, X2), X3, X4, .(X1, X5)) → U10_aaag(X1, X2, X3, X4, X5, appcA_in_aaag(X2, X3, X4, X5))
U10_aaag(X1, X2, X3, X4, X5, appcA_out_aaag(X2, X3, X4, X5)) → appcA_out_aaag(.(X1, X2), X3, X4, .(X1, X5))
U18_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appcA_out_aaag(X9, X10, X11, X12)) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
U12_ag(X1, appcE_out_aaag(X2, X3, X4, X1)) → U13_ag(X1, X2, X3, X4, in_ordercB_in_g(X2))
in_ordercB_in_g([]) → in_ordercB_out_g([])
U13_ag(X1, X2, X3, X4, in_ordercB_out_g(X2)) → U14_ag(X1, in_ordercB_in_g(X4))
U14_ag(X1, in_ordercB_out_g(X4)) → in_ordercD_out_ag(void, X1)
in_ordercD_in_ag(node(X1, X2, X3), X4) → U15_ag(X1, X2, X3, X4, appcF_in_aaag(X5, X2, X6, X4))
U15_ag(X1, X2, X3, X4, appcF_out_aaag(X5, X2, X6, X4)) → U16_ag(X1, X2, X3, X4, X5, X6, in_ordercD_in_ag(X1, X5))
U16_ag(X1, X2, X3, X4, X5, X6, in_ordercD_out_ag(X1, X5)) → U17_ag(X1, X2, X3, X4, in_ordercD_in_ag(X3, X6))
U17_ag(X1, X2, X3, X4, in_ordercD_out_ag(X3, X6)) → in_ordercD_out_ag(node(X1, X2, X3), X4)

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
appcF_in_aaag(x1, x2, x3, x4)  =  appcF_in_aaag(x4)
appcF_out_aaag(x1, x2, x3, x4)  =  appcF_out_aaag(x1, x2, x3, x4)
U19_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U19_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x12, x13)
appcC_in_aaag(x1, x2, x3, x4)  =  appcC_in_aaag(x4)
appcC_out_aaag(x1, x2, x3, x4)  =  appcC_out_aaag(x1, x2, x3, x4)
U11_aaag(x1, x2, x3, x4, x5, x6)  =  U11_aaag(x1, x5, x6)
in_ordercD_in_ag(x1, x2)  =  in_ordercD_in_ag(x2)
[]  =  []
in_ordercD_out_ag(x1, x2)  =  in_ordercD_out_ag(x1, x2)
U12_ag(x1, x2)  =  U12_ag(x1, x2)
appcE_in_aaag(x1, x2, x3, x4)  =  appcE_in_aaag(x4)
appcE_out_aaag(x1, x2, x3, x4)  =  appcE_out_aaag(x1, x2, x3, x4)
U18_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U18_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x12, x13)
appcA_in_aaag(x1, x2, x3, x4)  =  appcA_in_aaag(x4)
appcA_out_aaag(x1, x2, x3, x4)  =  appcA_out_aaag(x1, x2, x3, x4)
U10_aaag(x1, x2, x3, x4, x5, x6)  =  U10_aaag(x1, x5, x6)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x1, x4, x5)
in_ordercB_in_g(x1)  =  in_ordercB_in_g(x1)
in_ordercB_out_g(x1)  =  in_ordercB_out_g(x1)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x4, x5)
U16_ag(x1, x2, x3, x4, x5, x6, x7)  =  U16_ag(x2, x4, x6, x7)
U17_ag(x1, x2, x3, x4, x5)  =  U17_ag(x1, x2, x4, x5)
void  =  void
node(x1, x2, x3)  =  node(x1, x2, x3)
APPC_IN_AAAG(x1, x2, x3, x4)  =  APPC_IN_AAAG(x4)

We have to consider all (P,R,Pi)-chains

(10) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(11) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APPC_IN_AAAG(.(X1, X2), X3, X4, .(X1, X5)) → APPC_IN_AAAG(X2, X3, X4, X5)

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
APPC_IN_AAAG(x1, x2, x3, x4)  =  APPC_IN_AAAG(x4)

We have to consider all (P,R,Pi)-chains

(12) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(13) Obligation:

Q DP problem:
The TRS P consists of the following rules:

APPC_IN_AAAG(.(X1, X5)) → APPC_IN_AAAG(X5)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(14) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • APPC_IN_AAAG(.(X1, X5)) → APPC_IN_AAAG(X5)
    The graph contains the following edges 1 > 1

(15) YES

(16) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APPA_IN_AAAG(.(X1, X2), X3, X4, .(X1, X5)) → APPA_IN_AAAG(X2, X3, X4, X5)

The TRS R consists of the following rules:

appcF_in_aaag([], X1, X2, .(X1, X2)) → appcF_out_aaag([], X1, X2, .(X1, X2))
appcF_in_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3))) → appcF_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcF_in_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4)))) → appcF_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcF_in_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5))))) → appcF_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appcC_in_aaag(X9, X10, X11, X12))
appcC_in_aaag([], X1, X2, .(X1, X2)) → appcC_out_aaag([], X1, X2, .(X1, X2))
appcC_in_aaag(.(X1, X2), X3, X4, .(X1, X5)) → U11_aaag(X1, X2, X3, X4, X5, appcC_in_aaag(X2, X3, X4, X5))
U11_aaag(X1, X2, X3, X4, X5, appcC_out_aaag(X2, X3, X4, X5)) → appcC_out_aaag(.(X1, X2), X3, X4, .(X1, X5))
U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appcC_out_aaag(X9, X10, X11, X12)) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
in_ordercD_in_ag(void, []) → in_ordercD_out_ag(void, [])
in_ordercD_in_ag(void, X1) → U12_ag(X1, appcE_in_aaag(X2, X3, X4, X1))
appcE_in_aaag([], X1, X2, .(X1, X2)) → appcE_out_aaag([], X1, X2, .(X1, X2))
appcE_in_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3))) → appcE_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcE_in_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4)))) → appcE_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcE_in_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5))))) → appcE_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U18_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appcA_in_aaag(X9, X10, X11, X12))
appcA_in_aaag([], X1, X2, .(X1, X2)) → appcA_out_aaag([], X1, X2, .(X1, X2))
appcA_in_aaag(.(X1, X2), X3, X4, .(X1, X5)) → U10_aaag(X1, X2, X3, X4, X5, appcA_in_aaag(X2, X3, X4, X5))
U10_aaag(X1, X2, X3, X4, X5, appcA_out_aaag(X2, X3, X4, X5)) → appcA_out_aaag(.(X1, X2), X3, X4, .(X1, X5))
U18_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appcA_out_aaag(X9, X10, X11, X12)) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
U12_ag(X1, appcE_out_aaag(X2, X3, X4, X1)) → U13_ag(X1, X2, X3, X4, in_ordercB_in_g(X2))
in_ordercB_in_g([]) → in_ordercB_out_g([])
U13_ag(X1, X2, X3, X4, in_ordercB_out_g(X2)) → U14_ag(X1, in_ordercB_in_g(X4))
U14_ag(X1, in_ordercB_out_g(X4)) → in_ordercD_out_ag(void, X1)
in_ordercD_in_ag(node(X1, X2, X3), X4) → U15_ag(X1, X2, X3, X4, appcF_in_aaag(X5, X2, X6, X4))
U15_ag(X1, X2, X3, X4, appcF_out_aaag(X5, X2, X6, X4)) → U16_ag(X1, X2, X3, X4, X5, X6, in_ordercD_in_ag(X1, X5))
U16_ag(X1, X2, X3, X4, X5, X6, in_ordercD_out_ag(X1, X5)) → U17_ag(X1, X2, X3, X4, in_ordercD_in_ag(X3, X6))
U17_ag(X1, X2, X3, X4, in_ordercD_out_ag(X3, X6)) → in_ordercD_out_ag(node(X1, X2, X3), X4)

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
appcF_in_aaag(x1, x2, x3, x4)  =  appcF_in_aaag(x4)
appcF_out_aaag(x1, x2, x3, x4)  =  appcF_out_aaag(x1, x2, x3, x4)
U19_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U19_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x12, x13)
appcC_in_aaag(x1, x2, x3, x4)  =  appcC_in_aaag(x4)
appcC_out_aaag(x1, x2, x3, x4)  =  appcC_out_aaag(x1, x2, x3, x4)
U11_aaag(x1, x2, x3, x4, x5, x6)  =  U11_aaag(x1, x5, x6)
in_ordercD_in_ag(x1, x2)  =  in_ordercD_in_ag(x2)
[]  =  []
in_ordercD_out_ag(x1, x2)  =  in_ordercD_out_ag(x1, x2)
U12_ag(x1, x2)  =  U12_ag(x1, x2)
appcE_in_aaag(x1, x2, x3, x4)  =  appcE_in_aaag(x4)
appcE_out_aaag(x1, x2, x3, x4)  =  appcE_out_aaag(x1, x2, x3, x4)
U18_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U18_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x12, x13)
appcA_in_aaag(x1, x2, x3, x4)  =  appcA_in_aaag(x4)
appcA_out_aaag(x1, x2, x3, x4)  =  appcA_out_aaag(x1, x2, x3, x4)
U10_aaag(x1, x2, x3, x4, x5, x6)  =  U10_aaag(x1, x5, x6)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x1, x4, x5)
in_ordercB_in_g(x1)  =  in_ordercB_in_g(x1)
in_ordercB_out_g(x1)  =  in_ordercB_out_g(x1)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x4, x5)
U16_ag(x1, x2, x3, x4, x5, x6, x7)  =  U16_ag(x2, x4, x6, x7)
U17_ag(x1, x2, x3, x4, x5)  =  U17_ag(x1, x2, x4, x5)
void  =  void
node(x1, x2, x3)  =  node(x1, x2, x3)
APPA_IN_AAAG(x1, x2, x3, x4)  =  APPA_IN_AAAG(x4)

We have to consider all (P,R,Pi)-chains

(17) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(18) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APPA_IN_AAAG(.(X1, X2), X3, X4, .(X1, X5)) → APPA_IN_AAAG(X2, X3, X4, X5)

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
APPA_IN_AAAG(x1, x2, x3, x4)  =  APPA_IN_AAAG(x4)

We have to consider all (P,R,Pi)-chains

(19) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(20) Obligation:

Q DP problem:
The TRS P consists of the following rules:

APPA_IN_AAAG(.(X1, X5)) → APPA_IN_AAAG(X5)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(21) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • APPA_IN_AAAG(.(X1, X5)) → APPA_IN_AAAG(X5)
    The graph contains the following edges 1 > 1

(22) YES

(23) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

IN_ORDERD_IN_AG(node(X1, X2, X3), X4) → U5_AG(X1, X2, X3, X4, appcF_in_aaag(X5, X2, X6, X4))
U5_AG(X1, X2, X3, X4, appcF_out_aaag(X5, X2, X6, X4)) → IN_ORDERD_IN_AG(X1, X5)
U5_AG(X1, X2, X3, X4, appcF_out_aaag(X5, X2, X6, X4)) → U7_AG(X1, X2, X3, X4, X6, in_ordercD_in_ag(X1, X5))
U7_AG(X1, X2, X3, X4, X6, in_ordercD_out_ag(X1, X5)) → IN_ORDERD_IN_AG(X3, X6)

The TRS R consists of the following rules:

appcF_in_aaag([], X1, X2, .(X1, X2)) → appcF_out_aaag([], X1, X2, .(X1, X2))
appcF_in_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3))) → appcF_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcF_in_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4)))) → appcF_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcF_in_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5))))) → appcF_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appcC_in_aaag(X9, X10, X11, X12))
appcC_in_aaag([], X1, X2, .(X1, X2)) → appcC_out_aaag([], X1, X2, .(X1, X2))
appcC_in_aaag(.(X1, X2), X3, X4, .(X1, X5)) → U11_aaag(X1, X2, X3, X4, X5, appcC_in_aaag(X2, X3, X4, X5))
U11_aaag(X1, X2, X3, X4, X5, appcC_out_aaag(X2, X3, X4, X5)) → appcC_out_aaag(.(X1, X2), X3, X4, .(X1, X5))
U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appcC_out_aaag(X9, X10, X11, X12)) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
in_ordercD_in_ag(void, []) → in_ordercD_out_ag(void, [])
in_ordercD_in_ag(void, X1) → U12_ag(X1, appcE_in_aaag(X2, X3, X4, X1))
appcE_in_aaag([], X1, X2, .(X1, X2)) → appcE_out_aaag([], X1, X2, .(X1, X2))
appcE_in_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3))) → appcE_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcE_in_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4)))) → appcE_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcE_in_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5))))) → appcE_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U18_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appcA_in_aaag(X9, X10, X11, X12))
appcA_in_aaag([], X1, X2, .(X1, X2)) → appcA_out_aaag([], X1, X2, .(X1, X2))
appcA_in_aaag(.(X1, X2), X3, X4, .(X1, X5)) → U10_aaag(X1, X2, X3, X4, X5, appcA_in_aaag(X2, X3, X4, X5))
U10_aaag(X1, X2, X3, X4, X5, appcA_out_aaag(X2, X3, X4, X5)) → appcA_out_aaag(.(X1, X2), X3, X4, .(X1, X5))
U18_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, appcA_out_aaag(X9, X10, X11, X12)) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
U12_ag(X1, appcE_out_aaag(X2, X3, X4, X1)) → U13_ag(X1, X2, X3, X4, in_ordercB_in_g(X2))
in_ordercB_in_g([]) → in_ordercB_out_g([])
U13_ag(X1, X2, X3, X4, in_ordercB_out_g(X2)) → U14_ag(X1, in_ordercB_in_g(X4))
U14_ag(X1, in_ordercB_out_g(X4)) → in_ordercD_out_ag(void, X1)
in_ordercD_in_ag(node(X1, X2, X3), X4) → U15_ag(X1, X2, X3, X4, appcF_in_aaag(X5, X2, X6, X4))
U15_ag(X1, X2, X3, X4, appcF_out_aaag(X5, X2, X6, X4)) → U16_ag(X1, X2, X3, X4, X5, X6, in_ordercD_in_ag(X1, X5))
U16_ag(X1, X2, X3, X4, X5, X6, in_ordercD_out_ag(X1, X5)) → U17_ag(X1, X2, X3, X4, in_ordercD_in_ag(X3, X6))
U17_ag(X1, X2, X3, X4, in_ordercD_out_ag(X3, X6)) → in_ordercD_out_ag(node(X1, X2, X3), X4)

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
appcF_in_aaag(x1, x2, x3, x4)  =  appcF_in_aaag(x4)
appcF_out_aaag(x1, x2, x3, x4)  =  appcF_out_aaag(x1, x2, x3, x4)
U19_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U19_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x12, x13)
appcC_in_aaag(x1, x2, x3, x4)  =  appcC_in_aaag(x4)
appcC_out_aaag(x1, x2, x3, x4)  =  appcC_out_aaag(x1, x2, x3, x4)
U11_aaag(x1, x2, x3, x4, x5, x6)  =  U11_aaag(x1, x5, x6)
in_ordercD_in_ag(x1, x2)  =  in_ordercD_in_ag(x2)
[]  =  []
in_ordercD_out_ag(x1, x2)  =  in_ordercD_out_ag(x1, x2)
U12_ag(x1, x2)  =  U12_ag(x1, x2)
appcE_in_aaag(x1, x2, x3, x4)  =  appcE_in_aaag(x4)
appcE_out_aaag(x1, x2, x3, x4)  =  appcE_out_aaag(x1, x2, x3, x4)
U18_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13)  =  U18_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x12, x13)
appcA_in_aaag(x1, x2, x3, x4)  =  appcA_in_aaag(x4)
appcA_out_aaag(x1, x2, x3, x4)  =  appcA_out_aaag(x1, x2, x3, x4)
U10_aaag(x1, x2, x3, x4, x5, x6)  =  U10_aaag(x1, x5, x6)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x1, x4, x5)
in_ordercB_in_g(x1)  =  in_ordercB_in_g(x1)
in_ordercB_out_g(x1)  =  in_ordercB_out_g(x1)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x4, x5)
U16_ag(x1, x2, x3, x4, x5, x6, x7)  =  U16_ag(x2, x4, x6, x7)
U17_ag(x1, x2, x3, x4, x5)  =  U17_ag(x1, x2, x4, x5)
void  =  void
node(x1, x2, x3)  =  node(x1, x2, x3)
IN_ORDERD_IN_AG(x1, x2)  =  IN_ORDERD_IN_AG(x2)
U5_AG(x1, x2, x3, x4, x5)  =  U5_AG(x4, x5)
U7_AG(x1, x2, x3, x4, x5, x6)  =  U7_AG(x4, x5, x6)

We have to consider all (P,R,Pi)-chains

(24) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(25) Obligation:

Q DP problem:
The TRS P consists of the following rules:

IN_ORDERD_IN_AG(X4) → U5_AG(X4, appcF_in_aaag(X4))
U5_AG(X4, appcF_out_aaag(X5, X2, X6, X4)) → IN_ORDERD_IN_AG(X5)
U5_AG(X4, appcF_out_aaag(X5, X2, X6, X4)) → U7_AG(X4, X6, in_ordercD_in_ag(X5))
U7_AG(X4, X6, in_ordercD_out_ag(X1, X5)) → IN_ORDERD_IN_AG(X6)

The TRS R consists of the following rules:

appcF_in_aaag(.(X1, X2)) → appcF_out_aaag([], X1, X2, .(X1, X2))
appcF_in_aaag(.(X1, .(X2, X3))) → appcF_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcF_in_aaag(.(X1, .(X2, .(X3, X4)))) → appcF_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, X5))))) → appcF_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcC_in_aaag(X12))
appcC_in_aaag(.(X1, X2)) → appcC_out_aaag([], X1, X2, .(X1, X2))
appcC_in_aaag(.(X1, X5)) → U11_aaag(X1, X5, appcC_in_aaag(X5))
U11_aaag(X1, X5, appcC_out_aaag(X2, X3, X4, X5)) → appcC_out_aaag(.(X1, X2), X3, X4, .(X1, X5))
U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcC_out_aaag(X9, X10, X11, X12)) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
in_ordercD_in_ag([]) → in_ordercD_out_ag(void, [])
in_ordercD_in_ag(X1) → U12_ag(X1, appcE_in_aaag(X1))
appcE_in_aaag(.(X1, X2)) → appcE_out_aaag([], X1, X2, .(X1, X2))
appcE_in_aaag(.(X1, .(X2, X3))) → appcE_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcE_in_aaag(.(X1, .(X2, .(X3, X4)))) → appcE_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, X5))))) → appcE_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U18_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcA_in_aaag(X12))
appcA_in_aaag(.(X1, X2)) → appcA_out_aaag([], X1, X2, .(X1, X2))
appcA_in_aaag(.(X1, X5)) → U10_aaag(X1, X5, appcA_in_aaag(X5))
U10_aaag(X1, X5, appcA_out_aaag(X2, X3, X4, X5)) → appcA_out_aaag(.(X1, X2), X3, X4, .(X1, X5))
U18_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcA_out_aaag(X9, X10, X11, X12)) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
U12_ag(X1, appcE_out_aaag(X2, X3, X4, X1)) → U13_ag(X1, X4, in_ordercB_in_g(X2))
in_ordercB_in_g([]) → in_ordercB_out_g([])
U13_ag(X1, X4, in_ordercB_out_g(X2)) → U14_ag(X1, in_ordercB_in_g(X4))
U14_ag(X1, in_ordercB_out_g(X4)) → in_ordercD_out_ag(void, X1)
in_ordercD_in_ag(X4) → U15_ag(X4, appcF_in_aaag(X4))
U15_ag(X4, appcF_out_aaag(X5, X2, X6, X4)) → U16_ag(X2, X4, X6, in_ordercD_in_ag(X5))
U16_ag(X2, X4, X6, in_ordercD_out_ag(X1, X5)) → U17_ag(X1, X2, X4, in_ordercD_in_ag(X6))
U17_ag(X1, X2, X4, in_ordercD_out_ag(X3, X6)) → in_ordercD_out_ag(node(X1, X2, X3), X4)

The set Q consists of the following terms:

appcF_in_aaag(x0)
appcC_in_aaag(x0)
U11_aaag(x0, x1, x2)
U19_aaag(x0, x1, x2, x3, x4, x5, x6, x7, x8, x9)
in_ordercD_in_ag(x0)
appcE_in_aaag(x0)
appcA_in_aaag(x0)
U10_aaag(x0, x1, x2)
U18_aaag(x0, x1, x2, x3, x4, x5, x6, x7, x8, x9)
U12_ag(x0, x1)
in_ordercB_in_g(x0)
U13_ag(x0, x1, x2)
U14_ag(x0, x1)
U15_ag(x0, x1)
U16_ag(x0, x1, x2, x3)
U17_ag(x0, x1, x2, x3)

We have to consider all (P,Q,R)-chains.

(26) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04,JAR06].


The following pairs can be oriented strictly and are deleted.


U7_AG(X4, X6, in_ordercD_out_ag(X1, X5)) → IN_ORDERD_IN_AG(X6)
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO] with arctic natural numbers [ARCTIC]:

POL(IN_ORDERD_IN_AG(x1)) = -I + 1A·x1

POL(U5_AG(x1, x2)) = -I + 0A·x1 + 0A·x2

POL(appcF_in_aaag(x1)) = -I + 1A·x1

POL(appcF_out_aaag(x1, x2, x3, x4)) = 0A + 1A·x1 + -I·x2 + 2A·x3 + -I·x4

POL(U7_AG(x1, x2, x3)) = -I + 0A·x1 + 2A·x2 + 0A·x3

POL(in_ordercD_in_ag(x1)) = 0A + 1A·x1

POL(in_ordercD_out_ag(x1, x2)) = -I + 0A·x1 + 0A·x2

POL(.(x1, x2)) = 0A + -I·x1 + 1A·x2

POL([]) = 0A

POL(U19_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)) = 5A + -I·x1 + -I·x2 + -I·x3 + -I·x4 + -I·x5 + -I·x6 + -I·x7 + -I·x8 + 0A·x9 + 5A·x10

POL(appcC_in_aaag(x1)) = -I + 4A·x1

POL(void) = 0A

POL(U12_ag(x1, x2)) = 0A + 1A·x1 + -I·x2

POL(appcE_in_aaag(x1)) = -I + 5A·x1

POL(U15_ag(x1, x2)) = 0A + 1A·x1 + -I·x2

POL(U16_ag(x1, x2, x3, x4)) = 0A + -I·x1 + 0A·x2 + -I·x3 + -I·x4

POL(U17_ag(x1, x2, x3, x4)) = 0A + -I·x1 + -I·x2 + 0A·x3 + -I·x4

POL(node(x1, x2, x3)) = 0A + -I·x1 + -I·x2 + -I·x3

POL(appcC_out_aaag(x1, x2, x3, x4)) = 3A + 4A·x1 + -I·x2 + 5A·x3 + -I·x4

POL(U11_aaag(x1, x2, x3)) = -I + -I·x1 + -I·x2 + 1A·x3

POL(appcE_out_aaag(x1, x2, x3, x4)) = 0A + 5A·x1 + 5A·x2 + -I·x3 + 1A·x4

POL(U18_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)) = 0A + -I·x1 + 0A·x2 + 0A·x3 + 0A·x4 + -I·x5 + -I·x6 + 0A·x7 + 0A·x8 + -I·x9 + -I·x10

POL(appcA_in_aaag(x1)) = -I + 0A·x1

POL(U13_ag(x1, x2, x3)) = 0A + 0A·x1 + -I·x2 + 0A·x3

POL(in_ordercB_in_g(x1)) = 0A + -I·x1

POL(appcA_out_aaag(x1, x2, x3, x4)) = -I + 1A·x1 + -I·x2 + -I·x3 + -I·x4

POL(U10_aaag(x1, x2, x3)) = 0A + 5A·x1 + -I·x2 + 0A·x3

POL(in_ordercB_out_g(x1)) = 0A + 0A·x1

POL(U14_ag(x1, x2)) = 0A + 0A·x1 + -I·x2

The following usable rules [FROCOS05] with respect to the argument filtering of the ordering [JAR06] were oriented:

appcF_in_aaag(.(X1, X2)) → appcF_out_aaag([], X1, X2, .(X1, X2))
appcF_in_aaag(.(X1, .(X2, X3))) → appcF_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcF_in_aaag(.(X1, .(X2, .(X3, X4)))) → appcF_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, X5))))) → appcF_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcC_in_aaag(X12))
in_ordercD_in_ag([]) → in_ordercD_out_ag(void, [])
in_ordercD_in_ag(X1) → U12_ag(X1, appcE_in_aaag(X1))
in_ordercD_in_ag(X4) → U15_ag(X4, appcF_in_aaag(X4))
U15_ag(X4, appcF_out_aaag(X5, X2, X6, X4)) → U16_ag(X2, X4, X6, in_ordercD_in_ag(X5))
U16_ag(X2, X4, X6, in_ordercD_out_ag(X1, X5)) → U17_ag(X1, X2, X4, in_ordercD_in_ag(X6))
U17_ag(X1, X2, X4, in_ordercD_out_ag(X3, X6)) → in_ordercD_out_ag(node(X1, X2, X3), X4)
appcC_in_aaag(.(X1, X2)) → appcC_out_aaag([], X1, X2, .(X1, X2))
appcC_in_aaag(.(X1, X5)) → U11_aaag(X1, X5, appcC_in_aaag(X5))
U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcC_out_aaag(X9, X10, X11, X12)) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
U11_aaag(X1, X5, appcC_out_aaag(X2, X3, X4, X5)) → appcC_out_aaag(.(X1, X2), X3, X4, .(X1, X5))
U12_ag(X1, appcE_out_aaag(X2, X3, X4, X1)) → U13_ag(X1, X4, in_ordercB_in_g(X2))
in_ordercB_in_g([]) → in_ordercB_out_g([])
U13_ag(X1, X4, in_ordercB_out_g(X2)) → U14_ag(X1, in_ordercB_in_g(X4))
U14_ag(X1, in_ordercB_out_g(X4)) → in_ordercD_out_ag(void, X1)

(27) Obligation:

Q DP problem:
The TRS P consists of the following rules:

IN_ORDERD_IN_AG(X4) → U5_AG(X4, appcF_in_aaag(X4))
U5_AG(X4, appcF_out_aaag(X5, X2, X6, X4)) → IN_ORDERD_IN_AG(X5)
U5_AG(X4, appcF_out_aaag(X5, X2, X6, X4)) → U7_AG(X4, X6, in_ordercD_in_ag(X5))

The TRS R consists of the following rules:

appcF_in_aaag(.(X1, X2)) → appcF_out_aaag([], X1, X2, .(X1, X2))
appcF_in_aaag(.(X1, .(X2, X3))) → appcF_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcF_in_aaag(.(X1, .(X2, .(X3, X4)))) → appcF_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, X5))))) → appcF_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcC_in_aaag(X12))
appcC_in_aaag(.(X1, X2)) → appcC_out_aaag([], X1, X2, .(X1, X2))
appcC_in_aaag(.(X1, X5)) → U11_aaag(X1, X5, appcC_in_aaag(X5))
U11_aaag(X1, X5, appcC_out_aaag(X2, X3, X4, X5)) → appcC_out_aaag(.(X1, X2), X3, X4, .(X1, X5))
U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcC_out_aaag(X9, X10, X11, X12)) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
in_ordercD_in_ag([]) → in_ordercD_out_ag(void, [])
in_ordercD_in_ag(X1) → U12_ag(X1, appcE_in_aaag(X1))
appcE_in_aaag(.(X1, X2)) → appcE_out_aaag([], X1, X2, .(X1, X2))
appcE_in_aaag(.(X1, .(X2, X3))) → appcE_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcE_in_aaag(.(X1, .(X2, .(X3, X4)))) → appcE_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, X5))))) → appcE_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U18_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcA_in_aaag(X12))
appcA_in_aaag(.(X1, X2)) → appcA_out_aaag([], X1, X2, .(X1, X2))
appcA_in_aaag(.(X1, X5)) → U10_aaag(X1, X5, appcA_in_aaag(X5))
U10_aaag(X1, X5, appcA_out_aaag(X2, X3, X4, X5)) → appcA_out_aaag(.(X1, X2), X3, X4, .(X1, X5))
U18_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcA_out_aaag(X9, X10, X11, X12)) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
U12_ag(X1, appcE_out_aaag(X2, X3, X4, X1)) → U13_ag(X1, X4, in_ordercB_in_g(X2))
in_ordercB_in_g([]) → in_ordercB_out_g([])
U13_ag(X1, X4, in_ordercB_out_g(X2)) → U14_ag(X1, in_ordercB_in_g(X4))
U14_ag(X1, in_ordercB_out_g(X4)) → in_ordercD_out_ag(void, X1)
in_ordercD_in_ag(X4) → U15_ag(X4, appcF_in_aaag(X4))
U15_ag(X4, appcF_out_aaag(X5, X2, X6, X4)) → U16_ag(X2, X4, X6, in_ordercD_in_ag(X5))
U16_ag(X2, X4, X6, in_ordercD_out_ag(X1, X5)) → U17_ag(X1, X2, X4, in_ordercD_in_ag(X6))
U17_ag(X1, X2, X4, in_ordercD_out_ag(X3, X6)) → in_ordercD_out_ag(node(X1, X2, X3), X4)

The set Q consists of the following terms:

appcF_in_aaag(x0)
appcC_in_aaag(x0)
U11_aaag(x0, x1, x2)
U19_aaag(x0, x1, x2, x3, x4, x5, x6, x7, x8, x9)
in_ordercD_in_ag(x0)
appcE_in_aaag(x0)
appcA_in_aaag(x0)
U10_aaag(x0, x1, x2)
U18_aaag(x0, x1, x2, x3, x4, x5, x6, x7, x8, x9)
U12_ag(x0, x1)
in_ordercB_in_g(x0)
U13_ag(x0, x1, x2)
U14_ag(x0, x1)
U15_ag(x0, x1)
U16_ag(x0, x1, x2, x3)
U17_ag(x0, x1, x2, x3)

We have to consider all (P,Q,R)-chains.

(28) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 1 less node.

(29) Obligation:

Q DP problem:
The TRS P consists of the following rules:

U5_AG(X4, appcF_out_aaag(X5, X2, X6, X4)) → IN_ORDERD_IN_AG(X5)
IN_ORDERD_IN_AG(X4) → U5_AG(X4, appcF_in_aaag(X4))

The TRS R consists of the following rules:

appcF_in_aaag(.(X1, X2)) → appcF_out_aaag([], X1, X2, .(X1, X2))
appcF_in_aaag(.(X1, .(X2, X3))) → appcF_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcF_in_aaag(.(X1, .(X2, .(X3, X4)))) → appcF_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, X5))))) → appcF_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcC_in_aaag(X12))
appcC_in_aaag(.(X1, X2)) → appcC_out_aaag([], X1, X2, .(X1, X2))
appcC_in_aaag(.(X1, X5)) → U11_aaag(X1, X5, appcC_in_aaag(X5))
U11_aaag(X1, X5, appcC_out_aaag(X2, X3, X4, X5)) → appcC_out_aaag(.(X1, X2), X3, X4, .(X1, X5))
U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcC_out_aaag(X9, X10, X11, X12)) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
in_ordercD_in_ag([]) → in_ordercD_out_ag(void, [])
in_ordercD_in_ag(X1) → U12_ag(X1, appcE_in_aaag(X1))
appcE_in_aaag(.(X1, X2)) → appcE_out_aaag([], X1, X2, .(X1, X2))
appcE_in_aaag(.(X1, .(X2, X3))) → appcE_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcE_in_aaag(.(X1, .(X2, .(X3, X4)))) → appcE_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, X5))))) → appcE_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcE_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U18_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcA_in_aaag(X12))
appcA_in_aaag(.(X1, X2)) → appcA_out_aaag([], X1, X2, .(X1, X2))
appcA_in_aaag(.(X1, X5)) → U10_aaag(X1, X5, appcA_in_aaag(X5))
U10_aaag(X1, X5, appcA_out_aaag(X2, X3, X4, X5)) → appcA_out_aaag(.(X1, X2), X3, X4, .(X1, X5))
U18_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcA_out_aaag(X9, X10, X11, X12)) → appcE_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
U12_ag(X1, appcE_out_aaag(X2, X3, X4, X1)) → U13_ag(X1, X4, in_ordercB_in_g(X2))
in_ordercB_in_g([]) → in_ordercB_out_g([])
U13_ag(X1, X4, in_ordercB_out_g(X2)) → U14_ag(X1, in_ordercB_in_g(X4))
U14_ag(X1, in_ordercB_out_g(X4)) → in_ordercD_out_ag(void, X1)
in_ordercD_in_ag(X4) → U15_ag(X4, appcF_in_aaag(X4))
U15_ag(X4, appcF_out_aaag(X5, X2, X6, X4)) → U16_ag(X2, X4, X6, in_ordercD_in_ag(X5))
U16_ag(X2, X4, X6, in_ordercD_out_ag(X1, X5)) → U17_ag(X1, X2, X4, in_ordercD_in_ag(X6))
U17_ag(X1, X2, X4, in_ordercD_out_ag(X3, X6)) → in_ordercD_out_ag(node(X1, X2, X3), X4)

The set Q consists of the following terms:

appcF_in_aaag(x0)
appcC_in_aaag(x0)
U11_aaag(x0, x1, x2)
U19_aaag(x0, x1, x2, x3, x4, x5, x6, x7, x8, x9)
in_ordercD_in_ag(x0)
appcE_in_aaag(x0)
appcA_in_aaag(x0)
U10_aaag(x0, x1, x2)
U18_aaag(x0, x1, x2, x3, x4, x5, x6, x7, x8, x9)
U12_ag(x0, x1)
in_ordercB_in_g(x0)
U13_ag(x0, x1, x2)
U14_ag(x0, x1)
U15_ag(x0, x1)
U16_ag(x0, x1, x2, x3)
U17_ag(x0, x1, x2, x3)

We have to consider all (P,Q,R)-chains.

(30) UsableRulesProof (EQUIVALENT transformation)

As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R.

(31) Obligation:

Q DP problem:
The TRS P consists of the following rules:

U5_AG(X4, appcF_out_aaag(X5, X2, X6, X4)) → IN_ORDERD_IN_AG(X5)
IN_ORDERD_IN_AG(X4) → U5_AG(X4, appcF_in_aaag(X4))

The TRS R consists of the following rules:

appcF_in_aaag(.(X1, X2)) → appcF_out_aaag([], X1, X2, .(X1, X2))
appcF_in_aaag(.(X1, .(X2, X3))) → appcF_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcF_in_aaag(.(X1, .(X2, .(X3, X4)))) → appcF_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, X5))))) → appcF_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcC_in_aaag(X12))
appcC_in_aaag(.(X1, X2)) → appcC_out_aaag([], X1, X2, .(X1, X2))
appcC_in_aaag(.(X1, X5)) → U11_aaag(X1, X5, appcC_in_aaag(X5))
U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcC_out_aaag(X9, X10, X11, X12)) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
U11_aaag(X1, X5, appcC_out_aaag(X2, X3, X4, X5)) → appcC_out_aaag(.(X1, X2), X3, X4, .(X1, X5))

The set Q consists of the following terms:

appcF_in_aaag(x0)
appcC_in_aaag(x0)
U11_aaag(x0, x1, x2)
U19_aaag(x0, x1, x2, x3, x4, x5, x6, x7, x8, x9)
in_ordercD_in_ag(x0)
appcE_in_aaag(x0)
appcA_in_aaag(x0)
U10_aaag(x0, x1, x2)
U18_aaag(x0, x1, x2, x3, x4, x5, x6, x7, x8, x9)
U12_ag(x0, x1)
in_ordercB_in_g(x0)
U13_ag(x0, x1, x2)
U14_ag(x0, x1)
U15_ag(x0, x1)
U16_ag(x0, x1, x2, x3)
U17_ag(x0, x1, x2, x3)

We have to consider all (P,Q,R)-chains.

(32) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

in_ordercD_in_ag(x0)
appcE_in_aaag(x0)
appcA_in_aaag(x0)
U10_aaag(x0, x1, x2)
U18_aaag(x0, x1, x2, x3, x4, x5, x6, x7, x8, x9)
U12_ag(x0, x1)
in_ordercB_in_g(x0)
U13_ag(x0, x1, x2)
U14_ag(x0, x1)
U15_ag(x0, x1)
U16_ag(x0, x1, x2, x3)
U17_ag(x0, x1, x2, x3)

(33) Obligation:

Q DP problem:
The TRS P consists of the following rules:

U5_AG(X4, appcF_out_aaag(X5, X2, X6, X4)) → IN_ORDERD_IN_AG(X5)
IN_ORDERD_IN_AG(X4) → U5_AG(X4, appcF_in_aaag(X4))

The TRS R consists of the following rules:

appcF_in_aaag(.(X1, X2)) → appcF_out_aaag([], X1, X2, .(X1, X2))
appcF_in_aaag(.(X1, .(X2, X3))) → appcF_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcF_in_aaag(.(X1, .(X2, .(X3, X4)))) → appcF_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, X5))))) → appcF_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcC_in_aaag(X12))
appcC_in_aaag(.(X1, X2)) → appcC_out_aaag([], X1, X2, .(X1, X2))
appcC_in_aaag(.(X1, X5)) → U11_aaag(X1, X5, appcC_in_aaag(X5))
U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcC_out_aaag(X9, X10, X11, X12)) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
U11_aaag(X1, X5, appcC_out_aaag(X2, X3, X4, X5)) → appcC_out_aaag(.(X1, X2), X3, X4, .(X1, X5))

The set Q consists of the following terms:

appcF_in_aaag(x0)
appcC_in_aaag(x0)
U11_aaag(x0, x1, x2)
U19_aaag(x0, x1, x2, x3, x4, x5, x6, x7, x8, x9)

We have to consider all (P,Q,R)-chains.

(34) QDPQMonotonicMRRProof (EQUIVALENT transformation)

By using the Q-monotonic rule removal processor with the following ordering, at least one Dependency Pair or term rewrite system rule of this QDP problem can be strictly oriented such that it always occurs at a strongly monotonic position in a (P,Q,R)-chain.

Strictly oriented rules of the TRS R:

appcF_in_aaag(.(X1, X2)) → appcF_out_aaag([], X1, X2, .(X1, X2))

Used ordering: Polynomial interpretation [POLO]:

POL(.(x1, x2)) = 2   
POL(IN_ORDERD_IN_AG(x1)) = 2·x1   
POL(U11_aaag(x1, x2, x3)) = 1   
POL(U19_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)) = 2   
POL(U5_AG(x1, x2)) = 2·x2   
POL([]) = 0   
POL(appcC_in_aaag(x1)) = 1   
POL(appcC_out_aaag(x1, x2, x3, x4)) = 1   
POL(appcF_in_aaag(x1)) = x1   
POL(appcF_out_aaag(x1, x2, x3, x4)) = x1   

(35) Obligation:

Q DP problem:
The TRS P consists of the following rules:

U5_AG(X4, appcF_out_aaag(X5, X2, X6, X4)) → IN_ORDERD_IN_AG(X5)
IN_ORDERD_IN_AG(X4) → U5_AG(X4, appcF_in_aaag(X4))

The TRS R consists of the following rules:

appcF_in_aaag(.(X1, .(X2, X3))) → appcF_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcF_in_aaag(.(X1, .(X2, .(X3, X4)))) → appcF_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, X5))))) → appcF_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcC_in_aaag(X12))
appcC_in_aaag(.(X1, X2)) → appcC_out_aaag([], X1, X2, .(X1, X2))
appcC_in_aaag(.(X1, X5)) → U11_aaag(X1, X5, appcC_in_aaag(X5))
U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcC_out_aaag(X9, X10, X11, X12)) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
U11_aaag(X1, X5, appcC_out_aaag(X2, X3, X4, X5)) → appcC_out_aaag(.(X1, X2), X3, X4, .(X1, X5))

The set Q consists of the following terms:

appcF_in_aaag(x0)
appcC_in_aaag(x0)
U11_aaag(x0, x1, x2)
U19_aaag(x0, x1, x2, x3, x4, x5, x6, x7, x8, x9)

We have to consider all (P,Q,R)-chains.

(36) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04,JAR06].


The following pairs can be oriented strictly and are deleted.


U5_AG(X4, appcF_out_aaag(X5, X2, X6, X4)) → IN_ORDERD_IN_AG(X5)
The remaining pairs can at least be oriented weakly.
Used ordering: Polynomial interpretation [POLO,RATPOLO]:

POL(.(x1, x2)) = [1/4] + x2   
POL(IN_ORDERD_IN_AG(x1)) = [1/4] + [1/4]x1   
POL(U11_aaag(x1, x2, x3)) = [1] + x3   
POL(U19_aaag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)) = [2] + [1/4]x10   
POL(U5_AG(x1, x2)) = [1/4] + [1/4]x2   
POL([]) = 0   
POL(appcC_in_aaag(x1)) = [4]x1   
POL(appcC_out_aaag(x1, x2, x3, x4)) = [1] + [4]x1 + [2]x3   
POL(appcF_in_aaag(x1)) = x1   
POL(appcF_out_aaag(x1, x2, x3, x4)) = [1/4] + x1 + [1/4]x3   
The value of delta used in the strict ordering is 1/16.
The following usable rules [FROCOS05] with respect to the argument filtering of the ordering [JAR06] were oriented:

appcF_in_aaag(.(X1, .(X2, X3))) → appcF_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcF_in_aaag(.(X1, .(X2, .(X3, X4)))) → appcF_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, X5))))) → appcF_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcC_in_aaag(X12))
appcC_in_aaag(.(X1, X2)) → appcC_out_aaag([], X1, X2, .(X1, X2))
appcC_in_aaag(.(X1, X5)) → U11_aaag(X1, X5, appcC_in_aaag(X5))
U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcC_out_aaag(X9, X10, X11, X12)) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
U11_aaag(X1, X5, appcC_out_aaag(X2, X3, X4, X5)) → appcC_out_aaag(.(X1, X2), X3, X4, .(X1, X5))

(37) Obligation:

Q DP problem:
The TRS P consists of the following rules:

IN_ORDERD_IN_AG(X4) → U5_AG(X4, appcF_in_aaag(X4))

The TRS R consists of the following rules:

appcF_in_aaag(.(X1, .(X2, X3))) → appcF_out_aaag(.(X1, []), X2, X3, .(X1, .(X2, X3)))
appcF_in_aaag(.(X1, .(X2, .(X3, X4)))) → appcF_out_aaag(.(X1, .(X2, [])), X3, X4, .(X1, .(X2, .(X3, X4))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, X5))))) → appcF_out_aaag(.(X1, .(X2, .(X3, []))), X4, X5, .(X1, .(X2, .(X3, .(X4, X5)))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, X6)))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, [])))), X5, X6, .(X1, .(X2, .(X3, .(X4, .(X5, X6))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, []))))), X6, X7, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, X7)))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8)))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, [])))))), X7, X8, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, X8))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9))))))))) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, []))))))), X8, X9, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))))
appcF_in_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12))))))))) → U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcC_in_aaag(X12))
appcC_in_aaag(.(X1, X2)) → appcC_out_aaag([], X1, X2, .(X1, X2))
appcC_in_aaag(.(X1, X5)) → U11_aaag(X1, X5, appcC_in_aaag(X5))
U19_aaag(X1, X2, X3, X4, X5, X6, X7, X8, X12, appcC_out_aaag(X9, X10, X11, X12)) → appcF_out_aaag(.(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X9)))))))), X10, X11, .(X1, .(X2, .(X3, .(X4, .(X5, .(X6, .(X7, .(X8, X12)))))))))
U11_aaag(X1, X5, appcC_out_aaag(X2, X3, X4, X5)) → appcC_out_aaag(.(X1, X2), X3, X4, .(X1, X5))

The set Q consists of the following terms:

appcF_in_aaag(x0)
appcC_in_aaag(x0)
U11_aaag(x0, x1, x2)
U19_aaag(x0, x1, x2, x3, x4, x5, x6, x7, x8, x9)

We have to consider all (P,Q,R)-chains.

(38) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 0 SCCs with 1 less node.

(39) TRUE